package com.rimi.commons;

/**
 * @
 * @author:liangLi
 * @time:2020/7/6 14:19
 */
public enum ResultStaus {
    /**
     * 定义的自定义状态码与消息提示
     */

    OK(2000,"请求成功"),
    LOGIN_FAILED(2001,"登录失败"),
    USER_ID_NOT_FOUND(2002,"用户不存在"),
    WRONG_USERNAME_OR_PASSWORD(2003,"用户名或密码错误"),
    EXCEPTION_ERROR(20004,"系统异常，请联系管理员");

    Integer code;
    String message;

    ResultStaus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
